A Controlled Experiment to Assess the Benefits of Procedure Argument Type Checking

نویسندگان

  • Lutz Prechelt
  • Walter F. Tichy
چکیده

Type checking is considered an important mechanism for detecting programming errors, especially interface errors. This report describes an experiment to assess the defect-detection capabilities of static, inter-module type checking. The experiment uses Ansi C and Kernighan&Ritchie (K&R) C. The relevant diierence is that the Ansi C compiler checks module interfaces (i.e., the parameter lists of calls to external functions), whereas K&R C does not. The experiment employs a counterbalanced design in which each of the 40 subjects, most of them CS Ph.D. students, writes two non-trivial programs that interface with a complex library (Motif). Each subject writes one program in Ansi C and one in K&R C. The input to each compiler run is saved and manually analyzed for defects. Results indicate that delivered Ansi C programs contain signiicantly fewer interface defects than delivered K&R C programs. Furthermore, after subjects have gained some familiarity with the interface they are using , Ansi C programmers remove defects faster and are more productive (measured in both delivery time and functionality implemented).

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Controlled Experiment to Assess the Bene ts of Procedure Argument Type

Type checking is considered an important mechanism for detecting programming errors, especially interface errors. This report describes an experiment to assess the defect-detection capabilities of static, inter-module type checking. The experiment uses Ansi C and Kernighan&Ritchie (K&R) C. The relevant di erence is that the Ansi C compiler checks module interfaces (i.e., the parameter lists of ...

متن کامل

The Effect of Trans Theoretical Model (TTM) on Exercise Behavior in Pregnant Women Referred to Dehaghan Rural Health Center in

Introduction: Despite numerous benefits of physical activity during pregnancy, it's not common in women, probably due to knowledge deficiency. This study aimed to assess the effect of Trance Theoretical Model (TTM) on physical activity in pregnant women. Methods: In a quasi-experimental study, 100 women referred to Dehaghan health centers in year 2010 were randomly assigned to control and expe...

متن کامل

Modified Progressive Type-II Censoring Procedure in Life-Testing under the Weibull Model

In this paper we introduce a new scheme of censoring and study it under the Weibull distribution. This scheme is a mixture of progressive Type II censoring and self relocating design which was first introduced by Srivastava [8]. We show the superiority of this censoring scheme (PSRD) relative to the classical schemes with respect to “asymptotic variance”. Comparisons are also made with respect ...

متن کامل

An Experiment to Assess the Benefits of Inter-Module Type Checking

This paper reports on an experiment to assess the error detection capabilities of static, inter-module type checking. Type checking is considered an important mechanism for detecting programming errors, especially interface errors. The experiment uses Kernighan&Ritchie C and ANSI C. The relevant di erence is that the ANSI C compiler checks module interfaces (i.e., the parameter lists of calls t...

متن کامل

مقایسه سطح پراکسیداسیون لیپیدها در بیماران دیابت نوع دو کنترل شده و کنترل نشده

Background and Aim: Increased oxidative damage due to overproduction of free radicals in diabetic patients has already been reported. Complications in lipid membrane, as a consequence of free radicals’ activities, have proved to be associated with an increase in serum malondialdehyde (MDA) a lipid peroxidation end-product marker. Therefore, this study was performed to assess the effect of contr...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • IEEE Trans. Software Eng.

دوره 24  شماره 

صفحات  -

تاریخ انتشار 1998